import request from '@/utils/request';

//登录
export function login(data: any) {
  return request(
    '/user/login',
    {
      method: 'POST',
      data,
    },
    false,
  );
}

//获取菜单
export function getMenu(data: any) {
  return request(
    '/menu/getMenu',
    {
      method: 'POST',
      data,
    },
    true,
  );
}
